import {setInfo , getInfo} from '@/utils/storage'

export const moduleProdList = {
    namespaced: true,
    state: () => ({
        title: getInfo('title'),
        rowData: getInfo('rowData')
    }),
    mutations:{
        changeRowData(state,payload) {
            state.rowData = payload
            setInfo('rowData',payload)
        },
        changeTitle(state,payload){
            state.title = payload
            setInfo('title',payload)
        }
    }
}